#pragma once

#include "TFPusher.h"
#include <map>
#include <vector>

class TFKLinePushHandler : public TFPusher
{
	Q_OBJECT
public:
	Q_INVOKABLE  TFKLinePushHandler();
    virtual ~TFKLinePushHandler();
    bool processCmd(const QJsonObject& cmdObj, const ReqInfo& reqinfo, bool unReg = false) override;

protected slots:
	void onKLinePushDataArrived(QString id, int beginIndex, int endIndex);

private:
	std::map<std::string, std::vector<ReqInfo> > m_registers;
};

